package top.pin90;

import top.pin90.config.HolidayConfig2022;
import top.pin90.config.HolidayConfig2023;
import top.pin90.config.HolidayConfig2025;

import java.io.IOException;

public class Main {

    public static void main(String[] args) throws IOException {
//        generate2022();
//        generate2023();
        generate2025();
    }

    public static void generate2022() throws IOException {
        HolidayConfig holidayConfig = new HolidayConfig2022();
        GenerateCalendar generateCalendar = new GenerateCalendar(holidayConfig);
        generateCalendar.generate();
    }

    public static void generate2023() throws IOException {
        HolidayConfig holidayConfig = new HolidayConfig2023();
        GenerateCalendar generateCalendar = new GenerateCalendar(holidayConfig);
        generateCalendar.generate();
    }

    public static void generate2025() throws IOException {
        HolidayConfig holidayConfig = new HolidayConfig2025();
        GenerateCalendar generateCalendar = new GenerateCalendar(holidayConfig);
        generateCalendar.generate();
    }
}
